package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.sql.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Component
public class Comment {
    private Integer  commentId;
    @NotBlank(message = "评论不能为空")
    private String content;
    private Date createTime;
    private Integer userId;
    private Integer shareId;
}
